Optimal. Leaf size=99 \[ -\frac{2 (a+b x) (A b-a B) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{a^{3/2} \sqrt{b} \sqrt{a^2+2 a b x+b^2 x^2}}-\frac{2 A (a+b x)}{a \sqrt{x} \sqrt{a^2+2 a b x+b^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0572507, antiderivative size = 99, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.129, Rules used = {770, 78, 63, 205} \[ -\frac{2 (a+b x) (A b-a B) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{a^{3/2} \sqrt{b} \sqrt{a^2+2 a b x+b^2 x^2}}-\frac{2 A (a+b x)}{a \sqrt{x} \sqrt{a^2+2 a b x+b^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 770
Rule 78
Rule 63
Rule 205
Rubi steps
\begin{align*} \int \frac{A+B x}{x^{3/2} \sqrt{a^2+2 a b x+b^2 x^2}} \, dx &=\frac{\left (a b+b^2 x\right ) \int \frac{A+B x}{x^{3/2} \left (a b+b^2 x\right )} \, dx}{\sqrt{a^2+2 a b x+b^2 x^2}}\\ &=-\frac{2 A (a+b x)}{a \sqrt{x} \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{\left (2 \left (-\frac{A b^2}{2}+\frac{a b B}{2}\right ) \left (a b+b^2 x\right )\right ) \int \frac{1}{\sqrt{x} \left (a b+b^2 x\right )} \, dx}{a b \sqrt{a^2+2 a b x+b^2 x^2}}\\ &=-\frac{2 A (a+b x)}{a \sqrt{x} \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{\left (4 \left (-\frac{A b^2}{2}+\frac{a b B}{2}\right ) \left (a b+b^2 x\right )\right ) \operatorname{Subst}\left (\int \frac{1}{a b+b^2 x^2} \, dx,x,\sqrt{x}\right )}{a b \sqrt{a^2+2 a b x+b^2 x^2}}\\ &=-\frac{2 A (a+b x)}{a \sqrt{x} \sqrt{a^2+2 a b x+b^2 x^2}}-\frac{2 (A b-a B) (a+b x) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{a^{3/2} \sqrt{b} \sqrt{a^2+2 a b x+b^2 x^2}}\\ \end{align*}
Mathematica [A] time = 0.0315884, size = 79, normalized size = 0.8 \[ \frac{2 (a+b x) \left (-\sqrt{x} (A b-a B) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )-\sqrt{a} A \sqrt{b}\right )}{a^{3/2} \sqrt{b} \sqrt{x} \sqrt{(a+b x)^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 71, normalized size = 0.7 \begin{align*} -2\,{\frac{bx+a}{\sqrt{ \left ( bx+a \right ) ^{2}}a\sqrt{x}\sqrt{ab}} \left ( A\arctan \left ({\frac{\sqrt{x}b}{\sqrt{ab}}} \right ) \sqrt{x}b-B\arctan \left ({\frac{\sqrt{x}b}{\sqrt{ab}}} \right ) \sqrt{x}a+A\sqrt{ab} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.32549, size = 263, normalized size = 2.66 \begin{align*} \left [-\frac{2 \, A a b \sqrt{x} -{\left (B a - A b\right )} \sqrt{-a b} x \log \left (\frac{b x - a + 2 \, \sqrt{-a b} \sqrt{x}}{b x + a}\right )}{a^{2} b x}, -\frac{2 \,{\left (A a b \sqrt{x} +{\left (B a - A b\right )} \sqrt{a b} x \arctan \left (\frac{\sqrt{a b}}{b \sqrt{x}}\right )\right )}}{a^{2} b x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16518, size = 77, normalized size = 0.78 \begin{align*} \frac{2 \,{\left (B a \mathrm{sgn}\left (b x + a\right ) - A b \mathrm{sgn}\left (b x + a\right )\right )} \arctan \left (\frac{b \sqrt{x}}{\sqrt{a b}}\right )}{\sqrt{a b} a} - \frac{2 \, A \mathrm{sgn}\left (b x + a\right )}{a \sqrt{x}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]